package com.heima.wemedia.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class StudentService {
    @Async
    public void eat(){
        System.out.println("吃饭");
    }
    @Async
    public void sleep(){
        System.out.println("睡觉");
    }
    @Async
    public void study(){
        System.out.println("学习");
    }
    @Async
    public void play(){
        System.out.println("玩");
    }
}
